package com.logistics.modules.transportationManagement.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.logistics.modules.sys.entity.SystemcodetableEntity;
import lombok.Data;

/**
 * 
 * 
 * @author HURRICANE
 * @email HURRICANE@nb.com
 * @date 2022-05-06 18:12:10
 */
@Data
@TableName("cargo")
@JsonIgnoreProperties(value = {"handler"})
public class CargoEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id 自增
	 */
	@TableId
	private Integer id;
	/**
	 * 货物名称
	 */
	private String cargoName;
	/**
	 * 货物类型id
	 */
	private Integer cargoTypeId;
	/**
	 * 货物单位
	 */
	private Integer cargoUnit;
	/**
	 * 货物数量
	 */
	private Integer gargoNumber;
	/**
	 * 删除状态（0，正常，1已删除）
	 */
	@TableField
	private Integer delFlag;

	/**
	 * 货物类型
	 */
	@TableField(exist = false)
	private CargotypeEntity cargoType;

	/**
	 * 系统代码 货物单位
	 */
	@TableField(exist = false)
	private SystemcodetableEntity sysCargoUnit;

}
